#include <stdio.h>
int main(){
    char c[2][10];
    int LETTER=0,letter=0,num=0,space=0,other=0;
    for(int i=0;i<2;i++){
    gets(c[i]);
    }
    for(int i=0;i<2;i++){
        for(int j=0;j<10&&c[i][j]!='\0';j++){
            if(c[i][j]<='Z'&&c[i][j]>='A'){
                LETTER++;
            }else if(c[i][j]<='z'&&c[i][j]>='a'){
                letter++;
            }else if(c[i][j]<='9'&&c[i][j]>='0'){
                num++;
            }else if(c[i][j]==' '){
                space++;
            }else{
                other++;
            }
        }
    }
    printf("\n大写字母个数%d\n",LETTER);
    printf("小写字母个数%d\n",letter);
    printf("数字个数%d\n",num);
    printf("空格个数%d\n",space);
    printf("其他字符个数%d\n",other);
    return 0;
}